<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>CUPS 资料</title>
  
    <meta name="description" content="搜集的 CUPS 资料">
  
    <meta name="author" content="jouyouyun">

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le styles -->
    <link href="/assets/twitter/stylesheets/bootstrap.min.css" type="text/css" rel="stylesheet" media="all">
<link href="/assets/twitter/stylesheets/style.css" type="text/css" rel="stylesheet" media="all">
<link href="/assets/twitter/widgets/google_prettify/stylesheets/twitter-bootstrap.css" type="text/css" rel="stylesheet" media="all">
 

    <!-- Le fav and touch icons -->
  <!-- Update these with your own images
    <link rel="shortcut icon" href="images/favicon.ico">
    <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
  -->
  </head>

  <body>

    <div class="navbar">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="/">Jouyouyun&#39;s Blog</a>
          <ul class="nav">
            
              


  <li><a href="/archive">Archive</a></li>


            
              


  <li><a href="/tags">Tags</a></li>


            
              


  <li><a href="/categories">Categories</a></li>


            
              


  <li><a href="/about">About Me</a></li>


            
          </ul>
        </div>
      </div>
    </div>

    <div class="container">

      <div class="content">
        <div class="page-header">
  <h1>CUPS 资料 </h1>
</div>

<div class="row">
  <div class="span8">
    <h2>Installation</h2>

<p><code>sudo apt install cups ghostscript gsfonts</code></p>

<h3>Driver</h3>

<ul>
<li>gutenprint</li>
</ul>

<blockquote>
<p>一组质量非常好的驱动集合，支持的目标机型包括 Canon, Epson, Lexmark, Sony, Olympus；以及配合CUPS/GhostSscript/Foomatic/GIMP使用的 PCL printers。</p>

<p>安装包: <code>cups-driver-gutenprint gimp-gutenprint ijsgutenprint printer-driver-gutenprint</code></p>
</blockquote>

<ul>
<li>foomatic</li>
</ul>

<blockquote>
<p>Foomatic 是一个基于数据库的，集成自由软件打印机驱动和脱机打印程序的系统。</p>

<p>安装包: <code>foomatic-db foomatic-db-engine foomatic-db-compressed-ppds foomatic-db-gutenprint foomatic-filters</code> 以及 <code>foomatic-db-nonfree</code></p>
</blockquote>

<ul>
<li>foo2zjs</li>
</ul>

<blockquote>
<p>Drivers for ZjStream protocol printers such as the HP Laserjet 1018.</p>

<p>安装包: <code>printer-driver-foo2zjs</code></p>
</blockquote>

<ul>
<li>hplip</li>
</ul>

<blockquote>
<p>HP GNU/Linux 驱动. 支持 DeskJet, OfficeJet, Photosmart, Business Inkjet 和一些 LaserJet printer 型的, 以及一些兄弟打印机。</p>

<p>安装包: <code>hplip hplip-gui hplip-plugin</code></p>
</blockquote>

<ul>
<li>splix</li>
</ul>

<blockquote>
<p>三星驱动，支持SPL打印机(SPL：Samsung Printer Language)  (USB打印机要配合 cups-usblp 使用)</p>

<p>安装包: <code>printer-driver-splix splix samsung-printers samsung-print firmware-samsung</code></p>
</blockquote>

<ul>
<li>cndrvcups</li>
</ul>

<blockquote>
<p>佳能 UFR2 驱动，支持LBP, iR 和 MF 系列打印机.</p>

<p>安装包: <code>cndrvcups-capt cndrvcups-ufr2-uk cndrvcups-ufr2lt-uk cndrvcups-utility</code></p>
</blockquote>

<ul>
<li>cups-pdf</li>
</ul>

<blockquote>
<p>PDF虚拟打印机，这个东西可以把发送给他的打印任务输出为PDF文件。</p>
</blockquote>

<p>这些驱动可以全部预装。</p>

<p>有些打印机需要 <code>PPD</code> 文件，上面的驱动会自带一部分，如果没有就需要去查找了：</p>

<ul>
<li>到源里查找，包括其他发行版，如 <a href="https://wiki.archlinux.org/index.php/AUR">aur</a> 中找</li>
<li>到 <a href="http://www.openprinting.org/printers"> OpenPrinting database</a> 选择制造商和型号</li>
<li>到制造商官网查找</li>
</ul>

<hr />

<h2>Configuration</h2>

<p>配置文件在 <code>/etc/cups</code> 这个目录，为了方便排错，建议把 <code>/etc/cups/cupsd.conf</code> 中 <code>LogLevel</code> 设置为 <code>debug2</code>.</p>

<h3>USB 打印机</h3>

<p>使用 <code>lsusb</code> 查看设备。</p>

<p>需要加载模块 <code>usbcore</code>, 有的打印机还需要加载 <code>usblp</code> 而有的需要把它屏蔽</p>

<h3>并口打印机</h3>

<p>使用 <code>sudo dmesg | grep -i parport</code> 查看设备</p>

<p>需要加载模块 <code>lp parport parport_pc</code></p>

<p>有些使用 <code>usb to parallel</code> 的打印机可能无法识别，需要使用不同的连接方式，并将 <code>DeviceID</code> 写入到文件 <code>/etc/cups/printers.conf</code>，如 <code>DeviceID = parallel:/dev/usb/lp0</code></p>

<hr />

<h2>Links</h2>

<ul>
<li><a href="https://wiki.archlinux.org/index.php/CUPS">Arch Wiki CUPS</a></li>
<li><a href="https://wiki.archlinux.org/index.php/CUPS/Troubleshooting">Troubleshooting</a></li>
<li><a href="https://wiki.archlinux.org/index.php/CUPS/Printer-specific_problems">Arch Printer Driver</a></li>
<li><a href="https://wiki.deepin.org/index.php?title=%E6%89%93%E5%8D%B0%E6%9C%BA">Deepin Wiki CUPS</a></li>
</ul>

    <hr>
    <div class="pagination">
      <ul>
        <ul>
          
            <li class="prev"><a href="/Blog/Git-Rebase-%E5%9B%9E%E9%80%80/" title="Git Rebase 回退">&larr; Previous</a></li>
          
          

            <li><a href="/archive">Archive</a></li>

          
            <li class="next"><a href="/Blog/Bluetooth-FAQ/" title="Bluetooth FAQ">Next &rarr;</a></li>
          
          
        </ul>
      </ul>
    </div>
    <hr>
    
<div id="disqus_thread"></div>
<script>
    var disqus_developer = 1;
    var disqus_shortname = 'jekyllbootstrap'; // required: replace example with your forum shortname
    /* * * DON'T EDIT BELOW THIS LINE * * */
    (function() {
        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>

  </div>
  
  <div class="span4">
    <h4>Published</h4>
    <div class="date"><span>2018-04-08</span></div>
    <br>
    <h4>Categories</h4>
    <ul class="tag_box">
    
      <li>
  <a href="/categories/#Blog-ref">Blog <span>23</span></a>
</li>
    
    </ul>
    <br>
    <h4>Tags</h4>
    <ul class="tag_box">
    
      <li>
  <a href="/tags/#cups-ref">cups <span>1</span></a>
</li>
    
    </ul>
  </div>
</div>

      </div>

      <footer>
        <p>&copy; jouyouyun 2013 
          with help from <a href="http://github.com/wendal/gor" target="_blank" title="Gor -- Fast Blog">Gor</a>
          and <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap</a>
		  and Idea from <a href="http://ruhoh.com" target="_blank" title="The Definitive Technical Blogging Framework">ruhoh</a>
        </p>
      </footer>

    </div> <!-- /container -->

    
<script src="//cdnjscn.b0.upaiyun.com/libs/prettify/r298/prettify.min.js"></script>
<script>
  var pres = document.getElementsByTagName("pre");
  for (var i=0; i < pres.length; ++i) {
    pres[i].className = "prettyprint linenums";
  }
  prettyPrint();
</script>

    
<script type="text/javascript">

  var _gaq = _gaq || [];
  var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
  _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
  _gaq.push(['_setAccount', 'UA-123-12']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
  </body>
</html>
